package com.pattern.seener;

import java.util.Observable;
import java.util.Observer;

/**
 * 京东接口
 */
public class JinDongObserver implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        String newProduct = (String) arg;
        System.out.println("京东新增了产品" + newProduct + "正在同步更新");
    }
}
